<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<jsp:useBean id="startBean" class="de.msiggi.beans.StartBean"
	scope="application" />
<jsp:setProperty name="startBean" property="*" />
<jsp:useBean id="soccerClient" class="own.Soccerclient" scope="session" />
<jsp:useBean id="ChooseBean" class="de.msiggi.beans.ChooseBean"
	scope="application" />
<jsp:setProperty name="ChooseBean" property="*" />


<jsp:setProperty name="soccerClient" property="*" />
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setLocale value="de_DE"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Third:JSP</title>
<style type="text/css">

</style>

<body bgcolor="#00CC33">

	<h1>Gewählte Liga: 
	${ChooseBean.choosenLeagueName}</h1>
	<center>
	<table rules="rows" bgcolor="#FFFFFF" border="5" rules="rows" cellspacing="10" cellpadding="20">
		<c:forEach items="${ChooseBean.gameDays}" var="singleGameDay">
		
			<th colspan="6"><br>${singleGameDay.gamedayGroup}</th>
			
			<c:forEach items="${singleGameDay.matches}" var="singleMatch">
				<tr>
					<td><fmt:formatDate value="${singleMatch.matchDateTime.time}"
							pattern="EEE dd.MM.yyy" /></td>
					<td><c:out value="${singleMatch.nameTeam1}" /></td>
					
					<td><c:out value="${singleMatch.nameTeam2}" /></td>
					<td><c:if test="${singleMatch.matchIsFinished}">
							<c:out value="${singleMatch.pointsTeam1}" />
						</c:if></td>
					<td>:</td>
					<td><c:if test="${singleMatch.matchIsFinished}">
							<c:out value="${singleMatch.pointsTeam2}" />
						</c:if></td>
				</tr>
			</c:forEach>
			
			
			
		</c:forEach>
	</table></center>


</body>
</html>